Talk:Count how many vowels and consonants occur in a string: Difference between revisions

m
 
(4 intermediate revisions by 2 users not shown)
Line 36:
:::: Notice that there's no 'if' after the 'else'. So I think the following expression is simply evaluated and the result discarded. Consequently, if the character isn't a vowel, 'cons' will always be incremented and he'll end up with 24 consonants. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:05, 27 July 2021 (UTC)
 
::::: Oh, that is fabulous! Your "it seems very unlikely there would be a bug in the language implementation for something as basic as this" now rings so loud. (oh, pun not intended, but there it is) --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 15:18, 27 July 2021 (UTC)
 
: I'll second the deletion. This task is really hard to do correctly because the rules for when 'y' is a vowel are complicated. The 'y' in "country" used in the examples is unquestionably a vowel. 'y' is a vowel in words like "try" and "system" but not "you" or "yo-yo"). [[User:Garbanzo|Garbanzo]] ([[User talk:Garbanzo|talk]]) 01:20, 28 July 2021 (UTC)
 
== task wording ==
125

edits