Talk:Count how many vowels and consonants occur in a string: Difference between revisions
Talk:Count how many vowels and consonants occur in a string (view source)
Revision as of 09:14, 27 July 2021
, 2 years ago→Trivial task, but apparently not trivial enough: Further comment.
No edit summary |
(→Trivial task, but apparently not trivial enough: Further comment.) |
||
Line 23:
::though personally I prefer the middle style anyway. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 04:17, 27 July 2021 (UTC)
::: Yes but the problem is that, according to the [https://ring-lang.sourceforge.io/doc1.14/operators.html Ring documentation], 'not x and y' '''is''' evaluated as '(not x) and y' because the unary operator 'not' has higher precedence than the binary operator 'and'. It was the first thing I checked when I was trying to understand how he'd managed to arrive at 24 as the answer. What I suspect may have happened here is that he's copy/pasted the results from an earlier version of the code as it seems very unlikely there would be a bug in the language implementation for something as basic as this. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 09:14, 27 July 2021 (UTC)
== task wording ==
|