Trains

Trains

PostPosted by forummaster » Thu Jan 15, 2009 3:45 pm

A clever idea from J is the concept of trains where a parenthesized sequence of functions (which normally would signal a SYNTAX ERROR) can be interpreted as per the description in the previous link. As there is no ambiguity in the parser, that aspect of this feature has already been implemented. At the moment, trains signal a NONCE ERRROR.

forummaster
 
Posts: 567
Joined: Wed Jan 23, 2013 1:00 pm

Trains

PostPosted by gar37bic » Sat Sep 04, 2010 12:37 pm

Interesting. I just posted a suggestion under New Datatypes that proposed to support a 'function' datatype, (AKA 'first class functions'). This is a central element of functional programming languages, and would allow functions to be contained in arrays. This in turn would provide a huge new landscape of control flow - it could in fact replace all explicit control operators (if, while, etc.) and would provide multidimensionality to the control flow space. It appears that 'trains' are a partial step in that direction.
gar37bic
 
Posts: 5
Joined: Sat Sep 04, 2010 11:59 am


Return to New Syntax

Who is online

Users browsing this forum: No registered users and 0 guests

cron