Lasse R.H. Nielsen
unread,Jun 21, 2012, 1:46:08 AM6/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sam McCall, Peter Ahé, Shivam Tiwari, mi...@dartlang.org
On Wed, Jun 20, 2012 at 2:15 PM, Sam McCall <
samm...@google.com> wrote:
> On Wed, Jun 20, 2012 at 1:59 PM, Peter Ahé <
a...@google.com> wrote:
>>
>> Hi Shivam,
>>
>> Welcome to Dart!
>>
>> On Wed, Jun 20, 2012 at 11:33 AM, Sam McCall <
samm...@google.com> wrote:
>> > Dart doesn't really have scanf/printf equivalent functionality
>> > facilities
>> > yet; you'll need to tokenize the input yourself (RegExp may be helpful
>> > here), and then convert appropriately (e.g. Math.parseInt/parseDouble).
>>
>> If you think that Dart should have something equivalent to scanf,
>> please file a bug here:
http://dartbug.com/new.
>
> I don't actually -
I agree. Some kind of pattern-matching and field extraction on strings
would be great, but scanf just isn't very good at it.
It's too low-level for its own good.
> I like the regexes better
... hmm, I don't really. Using pure regexes feels like coding
assembler, and while I'm pretty decent at both, but I still don't
consider it the most productive way to slice a string.
It should be possible to make a better pattern matching framework than
just using plain regexes.
/L
--
Lasse R.H. Nielsen
l...@google.com
'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K -
Denmark - CVR nr. 28 86 69 84