Language Design: Stop Using Angle Brackets For Generics
soc.me
soc.me
The webpage html source:
<!DOCTYPE html>
<html lang="en">
...
<script async src="/assets/js/turnBack.js"></script>
...
which has this code to bounce you back: const undesirables = [
"news.ycombinator.com/",
// "lobste.rs/" // does not work due to rel="noreferrer"
] ;
if (undesirables.find(site => document.referrer.includes(site))) {
window.location.replace(document.referrer);
}
(The https://jwz.org domain by Jamie Zawinski is another example of a redirect when referred by Hacker News.)EDIT to downvoters... I don't mind the downvotes but could you explain? If my information is inaccurate and doesn't contribute to the discussion, I'd like to learn what is wrong. Thank you.
Also heavy disagree. [] for array access is better than array.get(0). I have list access like this in Java and it sucks.
Not true. E.g. https://oberon-lang.github.io/ used them (before switching to generic modules) and the grammar was even LL(1). I do not find the other arguments convincing either.
One would assume a parser that recognized foobaz = 5 in place of foo->bas = 5 wouldn't be a problem. Likely be far easier.
It rarely comes up for a collection of proc pointers, when calling that element directly. But it compiles fine. I code in Nim regularly and it's the least of my concerns.