Ela Platform 2013.1

14 views
Skip to first unread message

vorov2

unread,
Feb 13, 2013, 2:03:57 PM2/13/13
to ela...@googlegroups.com
Ela Platform 2013.1 includes a new version of Ela (0.12.1) and a new version of standard library that provide a support for monadic programming in Ela including Haskell style "do" notation.

An overview of this release is available here:
http://elalang.net/docs/Article.aspx?p=whatsnew.htm

Download here:
http://elalang.googlecode.com/files/ela-platform-2013.1.zip

Tikhonov Alexey

unread,
Mar 13, 2013, 2:21:11 AM3/13/13
to ela...@googlegroups.com
Hi, Vasily!
О©╫
Documentation claimed that one may declare a record with field name that is not a valid Ela identifier and then use indexer operator to access the element. Does it mean that the following example should work:
О©╫
let r = {"String"=0}
О©╫in r:"String"
О©╫
Actually it doesn't but may be I didn't get an idea what the indexer operator is. One more question Is there any inner mechanism implemented to read from / write to external files in Ela? For example to parse a file.
О©╫
14.02.2013, 02:04, "vorov2" <ba...@voronkov.name>:
Ela Platform 2013.1 includes a new version of Ela (0.12.1) and a new version of standard library that provide a support for monadic programming in Ela including Haskell style "do" notation.

An overview of this release is available here:
http://elalang.net/docs/Article.aspx?p=whatsnew.htm
О©╫
Download here:
http://elalang.googlecode.com/files/ela-platform-2013.1.zip

О©╫

--
О©╫
---
You received this message because you are subscribed to the Google Groups "elalang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elalang+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
О©╫
О©╫

Tikhonov Alexey

unread,
Mar 13, 2013, 3:34:13 AM3/13/13
to ela...@googlegroups.com
Ok, I looked through and see that I can answer my questions on myself. Of course the indexer takes only numeric arguments and io functions are defined in the corresponding module io.ela.
 
13.03.2013, 13:21, "Tikhonov Alexey" <a.le...@ya.ru>:
Hi, Vasily!
 
Documentation claimed that one may declare a record with field name that is not a valid Ela identifier and then use indexer operator to access the element. Does it mean that the following example should work:
 
let r = {"String"=0}
 in r:"String"
 
Actually it doesn't but may be I didn't get an idea what the indexer operator is. One more question Is there any inner mechanism implemented to read from / write to external files in Ela? For example to parse a file.
14.02.2013, 02:04, "vorov2" <ba...@voronkov.name>:
Ela Platform 2013.1 includes a new version of Ela (0.12.1) and a new version of standard library that provide a support for monadic programming in Ela including Haskell style "do" notation.

An overview of this release is available here:
http://elalang.net/docs/Article.aspx?p=whatsnew.htm
 
Download here:
http://elalang.googlecode.com/files/ela-platform-2013.1.zip

 

--
 
---
You received this message because you are subscribed to the Google Groups "elalang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elalang+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

 

--

Vasily Voronkov

unread,
Mar 13, 2013, 4:17:48 AM3/13/13
to ela...@googlegroups.com

Alexey,

An (:) is a function from index (numeric) to a value.

I guess you are looking for a function getField which would do a job in this case. You can find a description of this function in prelude documentation.

 

To answer your second question – Ela parser is not currently exposed to Ela code (you can make it available by yourself if you wish).

Tikhonov Alexey

unread,
Mar 28, 2013, 6:58:05 AM3/28/13
to ela...@googlegroups.com
Hi!
 
I wonder whether it is possible to define the operator "/" in the standard library so that it returns Int for integer arguments ? Now 1/2 == 0.5f.
 
13.03.2013, 15:17, "Vasily Voronkov" <ba...@voronkov.name>:
Reply all
Reply to author
Forward
0 new messages