design - Programming language besides Tcl where everything is string -
are there programming languages string. example, let's consider tcl snippet (comments shows equivalent statement in c/java) e.g.
set x [append ab cd] ;# c = "ab" + "cd" set m 1 ;# m = 1 set n [expr $m + 1] ;# n = m + 1
effectively, reverse of found in languages c or java; here default type literal string unless "special" word or preceded $ sign (in case, string succeeding $ variable).
i'd examples aren't far removed c or java @ all. kind of relaxed syntax isn't uncommon in shell script languages, , takes sufficiently clever preprocessor allow in, say, c. lisp macros have "everything literal unless should evaluated" semantics in backquoted expressions.
tcl eias means allows program handle different data structures, , data structures , executable code, interchangeably, strings common currency. isn't unheard of: e.g. lisp lists, isn't common either. makes tcl extremely dynamic, , super freaky many programmers.
Comments
Post a Comment