Login  Register

AST-Core-Parser readFrom: question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

AST-Core-Parser readFrom: question

Brad Selfridge
138 posts
Is it safe to use the AST-Core-Parser class extension "readFrom:" in a business application?
Brad Selfridge
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: AST-Core-Parser readFrom: question

Nicolai Hess-3-2
935 posts


2016-10-25 21:16 GMT+02:00 Brad Selfridge <[hidden email]>:
Is it safe to use the AST-Core-Parser class extension "readFrom:" in a
business application?

Maybe no. It is bound to smalltalk syntax and the allowed number literals. For example, a '+' sign in a float exponents has some suprising behavior

Number readFrom:'3e4' "-> 30000"
Number readFrom:'3e+4' "->3"
 



-----
Brad Selfridge
--
View this message in context: http://forum.world.st/AST-Core-Parser-readFrom-question-tp4920128.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.