« Return to Thread: Library defined literals

Re: Library defined literals

by Walter Smith :: Rate this Message:

Reply to Author | View in Thread

Grey wrote:
Not intended to hijack the thread, but for me the below mentioned Unicode
capability has led to a number of interesting ends.  All kinds of simple 1
or 2 char symbolic methods (various arrow and math symbols) for example can
be defined.
Well, you did, but maybe not as much as you have thought ;-)

The thing that I had been thinking about before I came up with the library defined literals was using the superscript and subscript numbers (\u2080 etc.) like they are often used in science, but I hadn't found any regular way for Scala to allow their use for libraries. Maybe we all just think too much in programming languages already, so we can't see the simplicity mathematical expressions could offer to a programming language. Maybe we are too much settled on using plain text editors, too.

Walter

 « Return to Thread: Library defined literals