Live data from Hacker News

I Hate the Letter F

old.reddit.com

11–20 of 63 posts

Re: I Hate the Letter F

#11

As a commenter points out, that’d make programming a difficult pastime. Can’t think of a non-esolang without if and for apart from Brainfuck, and that’s got an f in the name.

With Rust you could get by with "match bool { true => ..., _ => ... }" and "loop { ... break }" I think.

Re: I Hate the Letter F

#14
post #5

I wonder how easy it would be to avoid that letter when programming. It would certainly be easier in Perl, since you can use unless conditionals and while loops, and subroutines are simply called sub. In the case you absolutely need a module using the dreaded letter, require can be used instead of use so that letter can simply be escaped. The same applies to method calls, just call indirectly. The idea reminds me abo…

[deleted]

Re: I Hate the Letter F

#15
post #5

I wonder how easy it would be to avoid that letter when programming. It would certainly be easier in Perl, since you can use unless conditionals and while loops, and subroutines are simply called sub. In the case you absolutely need a module using the dreaded letter, require can be used instead of use so that letter can simply be escaped. The same applies to method calls, just call indirectly. The idea reminds me abo…

Just missed out - one occurrence.

Re: I Hate the Letter F

#16

As a commenter points out, that’d make programming a difficult pastime. Can’t think of a non-esolang without if and for apart from Brainfuck, and that’s got an f in the name.

I infer from the wording in your comment that you consider Brainfuck to be a non-esolang. Your mind must operate on a different plane to mine!

Re: I Hate the Letter F

#17

As a commenter points out, that’d make programming a difficult pastime. Can’t think of a non-esolang without if and for apart from Brainfuck, and that’s got an f in the name.

I guess you can (at least in C ) use && where you would use “if” and a convoluted while where you could write a “for”.

    #include 

    int main() {
            int a = 1;
        
            switch(a) case 1: puts("there's always this");
    }
Switch accepts a statement. It does not have to be compound.

Re: I Hate the Letter F

#18
post #5

I wonder how easy it would be to avoid that letter when programming. It would certainly be easier in Perl, since you can use unless conditionals and while loops, and subroutines are simply called sub. In the case you absolutely need a module using the dreaded letter, require can be used instead of use so that letter can simply be escaped. The same applies to method calls, just call indirectly. The idea reminds me abo…

FORTH would be a good language despite its name starting with F.

Re: I Hate the Letter F

#19
post #11

As a commenter points out, that’d make programming a difficult pastime. Can’t think of a non-esolang without if and for apart from Brainfuck, and that’s got an f in the name.

With Rust you could get by with "match bool { true => ..., _ => ... }" and "loop { ... break }" I think.

Yeah, using a language with pattern matching should do the trick. Maybe OCaml or even F#.

rimshot

Post reply on HN