Talk:Letter frequency: Difference between revisions

m
→‎a few remarks for Rexx: responded to suggestions and queries. -- ~~~~
m (→‎Task description: changed the wording a bit. -- ~~~~)
m (→‎a few remarks for Rexx: responded to suggestions and queries. -- ~~~~)
Line 40:
In such cases I use cnt.0up.y so that a possible variable up never interferes
actually y is the hex version , drop one ‘of’
 
:: I don't understand what you are observing, substantial or not. Thank you for your suggestion that I modify the version 1 code, but one of "them" can't be dropped as REXX version 1 keeps track of ''letters'' as well as ''characters'', and both of "them" are needed for their respective (count) lists. -- [[User:Gerard Schildberger|Gerard Schildberger]] 22:01, 25 July 2012 (UTC)
 
@.=0 /*wouldn't it be neat to use Θ ? */
why not use cnt. ?
 
: Because it's my style of coding. I use '''@.''' for important stemmed arrays, and it makes it easier to find in the code where that stemmed array is referenced. Using such constructs as '''c.c''' is very confusing to a novice reader of REXX. There's two variables being used, '''c''' and '''c''', one is the stemmed array name, the other the stemmed array index. But --- defending one's programming style will just start a religious war, so there is no sense in pointing faults in another's coding sytle. -- [[User:Gerard Schildberger|Gerard Schildberger]] 22:01, 25 July 2012 (UTC)
 
In the discussion I read:
“Case sensitivity? Count what you get without applying any uppercase/lowercase filters”
 
:: No filters were used in REXX version 1, ''letters'' and ''characters'' were counted correctly without case sensitivity, and a count was provided for each. -- [[User:Gerard Schildberger|Gerard Schildberger]] 22:01, 25 July 2012 (UTC)
 
upper c -> c=translate(c) would help for other Rexxes (in particular ooRexx)
 
:: REXX version 1 was coded for classic REXX (not the object-oriented version of REXX), and the use of the '''upper''' statement is more intuitive when being read by people who don't know REXX that well, the '''upper''' bif explains itself. It also has uses that '''translate''' can't do, but that discussion should be done elsewhere. -- [[User:Gerard Schildberger|Gerard Schildberger]] 22:01, 25 July 2012 (UTC)
 
--[[User:Walterpachl|Walterpachl]] 09:21, 25 July 2012 (UTC)