Hi

In all computer languages it is more difficult to read data than to write
them, I think.
Racket (like more lisp-like languages) is rather easy on this:
give it sexprs to read and you have no problems.
If you want to accept other types of input, you need a parser.
In the past I have made programs accepting a specific language for its
input, often in Fortran.
In Fortran even reading a Fortran-like expression is cumbersome!

Designing the forms input may have includes the necessarity to design a
procedure that transforme the input to data that can be handled within the
language used for the procedures that have to handle these data.

Moreover, Racket provides elaborated tools to define and implement the
language of the input you want to read.

my2cents, or may be 1 only.
Jos


-----Original Message-----
From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com]
On Behalf Of rom cgb
Sent: jueves, 24 de marzo de 2016 13:38
To: Racket Users
Subject: [racket-users] Re: IO in racket is painful

A possible case study: there a scanf procedure in slib, a pseudo standard
library for Scheme[1][2]. It does mutate the passed arguments like with C's
scanf which i think is not the idiomatic way to do things in Racket[3]

doc:
http://people.csail.mit.edu/jaffer/slib/Standard-Formatted-Input.html#Standa
rd-Formatted-Input
code: http://cvs.savannah.gnu.org/viewvc/slib/slib/scanf.scm?view=markup

[1] https://en.wikipedia.org/wiki/SLIB
[2] http://people.csail.mit.edu/jaffer/SLIB.html
[3]
http://blog.racket-lang.org/2007/11/getting-rid-of-set-car-and-set-cdr.html

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

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

Reply via email to