The Artima Developer Community
Sponsored Link

Heron-Centric: Ruminations of a Language Designer
Postfix Typecast Operations
by Christopher Diggins
September 27, 2005
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?

Talk Back!

Have an opinion? Readers have already posted 22 comments about this weblog entry. Why not add yours?

RSS Feed

If you'd like to be notified whenever Christopher Diggins adds a new entry to his weblog, subscribe to his RSS feed.

About the Blogger

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.

This weblog entry is Copyright © 2005 Christopher Diggins. All rights reserved.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2014 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us