Похожие чаты

Is this a matter of engine implementation?

10 ответов

12 просмотров

I'm not sure what you're asking

Nop

Perlik-Yubenji Автор вопроса
Thomas
Nop

doesn't make sense. The block should only evaluate if the case matches. Are we in agreement on that?

Perlik-Yubenji Автор вопроса
Thomas
No

my chromium says yes

Perlik-Yubenji Автор вопроса
Thomas
No, it doesn't, try 25

aah. I see. missed this part "If break is omitted, the program continues execution at the next statement in the switch statement. " that's really weird. So case without a break is pretty useless.

Perlik Yubenji
aah. I see. missed this part "If break is omitted,...

That's the idea, and it makes the entire switch pretty useless too

Perlik-Yubenji Автор вопроса
Thomas
That's the idea, and it makes the entire switch pr...

I would think it has to do with decidability logic i.e. where logic scoped to a case ends. then replacing with braces rather than colon might be a 💡idea (I think)

Perlik Yubenji
I would think it has to do with decidability logic...

But you still need break, braces only protects against variable definition leakage

Похожие вопросы

Обсуждают сегодня

А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
Делаю велосипед логгер. К сообщению хочу прикрутить некоторую информацию, типа, кем отправлено, какой уровень, и всякое такое. И тут подумалось мне, почему бы не хранить весь...
Serjone
24
Вопрос я правильно понимаю что в коде newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v } getArrowMap есть функция типа k -> Maybe v, если да, то не понимаю задач...
Fedor
64
Всем привет! Использую gitlab-ci. Настроил gitlab-agent для деплоя в куб. При деплое проекта в логах такая ошибка: Executing deploy plan failed to watch "ns:my-project/Ingress...
Konstantin Moiseev
4
Since this HBAR page is so sensitive to words and criticism, I'll have to put this more delicately. What's up with this? DBS, a Hedera GC member holding $647 million in ETH?...
Summit Seeker R
11
What do you think they are trying to do ?
Ronan Gill
15
Как Вы считаете нормально ли в двадцатых годах 21 века в ВУЗах Российской Федерации обучать студентов работе с TASM? Не слишком ли это "архаично"? (Если оффтоп или флейм для э...
Spiker01
52
I am honored to report that all the deliverables for the BCHFAQ Flipstarter Phase 1 have been completed. I appreciate the opportunity I've had to put all this together using t...
fixthetracking
15
VIP-317 XVS bridge between Arbitrum one and BNB Chain, Ethereum and opBNB Summary Following the community proposal [VRC] Deploy Venus Protocol on Arbitrum, and the associate...
Venus Announcements
1
Based on the forum post on XPRT on basechain, I would like to express a few thoughts. In general, I think the idea that Persistence is pursuing is good, but I'm really having ...
Martin Knox
6
Карта сайта