[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: kspread formula names
From:       John Dailey <dailey () vt ! edu>
Date:       2002-02-04 17:17:31
[Download RAW message or body]

> I don't know whether that's a good idea. K(O)Script was designed as
> programming language, which is case sensitive (like C, C++,...). The
> "primitives" of that language, like if and so on also are lowercase
> and I think it should remain that way.

Where is this programming language designed to be used besides in KSpread?  Is 
there any reason it can't be a programming language with case insensative 
function names?  Everyday users are supposed to be using this, not 
programmers.  

A quick glance at the scanner seems to indicate that the "if" string, for 
instance, is ignored as an IF token but read as an identifier if it is being 
parsed for kspread (koffice/lib/koscript/scanner.ll:356)


> Hmm... I don't know, but I would just make everything lowercase.

Then we ruin existing saved files.

> Else you have a case sensitive if and a case insensitive SUM/sum/Sum/...
> Adding iF,If,IF for all keywords doesn't seem like a good idea to
> me. Building a case insensitive lexer will introduce bugs as the "language"
> wasn't designed to be case insensitive.

Maybe I don't understand the problem here.  What bugs would be introduced?

Thanks!

John
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic