« Return to Thread: Library defined literals

Re: Library defined literals

by Arthur Peters :: Rate this Message:

Reply to Author | View in Thread

As I read this thread I keep thinking, "That would be great, .... if I could type that character on my keyboard".

How do you guys go about typing the special characters?

-Arthur


On Wed, Jun 10, 2009 at 4:25 PM, Walter Smith <walter.smith@...> wrote:


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
--
View this message in context: http://www.nabble.com/Library-defined-literals-tp23949477p23970321.html
Sent from the Scala - Debate mailing list archive at Nabble.com.


 « Return to Thread: Library defined literals