Sponsored Link •
|
Summary
The latest HeronScript does type-casting backwards.
Advertisement
|
I just made a new HeronScript release which supports postfix type-casting. This means the following statements are equivalent:
my_window.line_rel(cm(5), inch(5)) my_window.line_rel(5 cm, 5 inch)It seems like such an obvious and natural feature for a wide range of domains from physics to engineering to graphics, I wonder why it is so rare? Does any other language actually implement this syntax as a postfix type-cast?
Have an opinion? Readers have already posted 22 comments about this weblog entry. Why not add yours?
If you'd like to be notified whenever Christopher Diggins adds a new entry to his weblog, subscribe to his RSS feed.
Christopher Diggins is a software developer and freelance writer. Christopher loves programming, but is eternally frustrated by the shortcomings of modern programming languages. As would any reasonable person in his shoes, he decided to quit his day job to write his own ( www.heron-language.com ). Christopher is the co-author of the C++ Cookbook from O'Reilly. Christopher can be reached through his home page at www.cdiggins.com. |
Sponsored Links
|