8

Can scalaz be used without a keyboard containing the appropriate Unicode characters or does every Unicode identifier also have an "ASCII" equivalent (and if yes, is there any guarantee that it stays that way)? Are there special keyboard layouts for usage with scalaz?

What's the best practice? Inputting the Unicode identifiers directly or using the ASCII substitutes and using a script to replace them with the Unicode ones before commit?

soc
  • 27,983
  • 20
  • 111
  • 215

4 Answers4

9

No, you don't need anything besides ASCII to use Scalaz.

However, most editors and IDEs have some way of automatically or semi-automatically (like, -space) converting a sequence of characters into something else. That takes care of it if you want to keep your source code in Unicode.

Now, the problem with keeping stuff in Unicode is that you might trouble with some fonts when displaying stuff in web pages, etc. Hell, you might even be forced to convert the code to ASCII for some reason. Yes, it is unlikely, but it is an issue you should be aware of.

Daniel C. Sobral
  • 295,120
  • 86
  • 501
  • 681
7

This post from Superuser has some information about this.

Community
  • 1
  • 1
Jon McAuliffe
  • 3,137
  • 1
  • 20
  • 10
3

This wikipedia article on Unicode input might be helpful.

Don Roby
  • 40,677
  • 6
  • 91
  • 113
1

No. Yes. Yes. No. Benign guarantees are for sissies. Write code. I use an appropriate development environment that allows me to type whatever I like.

Tony Morris
  • 3,045
  • 2
  • 29
  • 17
  • 2
    Which development environment do you use, and how do you type the Unicode characters? - I think the question raises a valid concern. – Madoc Aug 17 '11 at 09:09
  • Ever the soul of tact, aren't you? :] Seriously, though. Unicode has been around for a decade or so, any application of even barely passable quality should have a way to deal with Unicode input, if only by relying on standard means provided by the system. – C. A. McCann Aug 17 '11 at 16:00