Disable all anti work keywords on a fundamental level. immutable
@safe
private
when passed a flag.
Thread overview |
---|
July 13 Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
July 13 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to Monkyyy | On Sunday, 13 July 2025 at 00:12:16 UTC, Monkyyy wrote: >Disable all anti work keywords on a fundamental level. Hey! Private is useful :( |
July 13 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kapendev | On Sunday, 13 July 2025 at 00:52:56 UTC, Kapendev wrote: >On Sunday, 13 July 2025 at 00:12:16 UTC, Monkyyy wrote: >Disable all anti work keywords on a fundamental level. Hey! Private is useful :( False; it can only make less code work. I understand that some have a religious belief that some working code is unholy. However I would prefer my computer does what I tell it to do when I tell it to do it and not do major reworks if I happen to use code with such unnecessary wounds. |
July 13 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to monkyyy | On Sunday, 13 July 2025 at 01:07:28 UTC, monkyyy wrote: >On Sunday, 13 July 2025 at 00:52:56 UTC, Kapendev wrote: >On Sunday, 13 July 2025 at 00:12:16 UTC, Monkyyy wrote: >Disable all anti work keywords on a fundamental level. Hey! Private is useful :( False; it can only make less code work. I understand that some have a religious belief that some working code is unholy. However I would prefer my computer does what I tell it to do when I tell it to do it and not do major reworks if I happen to use code with such unnecessary wounds. I do think that having private struct/class fields is sometimes annoying, but nothing wrong with private functions. |
July 13 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kapendev | On Sunday, 13 July 2025 at 08:47:30 UTC, Kapendev wrote: >nothing wrong with private functions. https://forum.dlang.org/thread/xpmcikgbxhwnraglzbsf@forum.dlang.org?page=1 I one symbol typo can cause many problems |
July 14 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to Monkyyy | On Sunday, 13 July 2025 at 00:12:16 UTC, Monkyyy wrote:
> Disable all anti work keywords on a fundamental level. `immutable` `@safe` `private` when passed a flag.
I think if you didn't already this will be easier to do with openD and should br used as termometer for main branch.
Matheus.
|
July 14 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to matheus | On Monday, 14 July 2025 at 15:09:29 UTC, matheus wrote:
> On Sunday, 13 July 2025 at 00:12:16 UTC, Monkyyy wrote:
>> Disable all anti work keywords on a fundamental level. `immutable` `@safe` `private` when passed a flag.
>
> I think if you didn't already this will be easier to do with openD and should br used as termometer for main branch.
>
> Matheus.
I am not a compiler dev and adr would likely tell me to fork phoboes
I'm only bothering at all with this because there were 3 entire reasonable opinions in the help thread
|
July 17 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to monkyyy | On Sunday, 13 July 2025 at 01:07:28 UTC, monkyyy wrote: >False; it can only make less code work. I understand that some have a religious belief that some working code is unholy. Then again, probably you agree there is some code you wouldn't want to compile. If I write
do you think that should compile to something? If not, there you have it - there is code that shouldn't work. The question is, where are you drawing the line - when do compiler checks go too far? |
July 17 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kapendev | On Sunday, 13 July 2025 at 08:47:30 UTC, Kapendev wrote: >On Sunday, 13 July 2025 at 01:07:28 UTC, monkyyy wrote: >On Sunday, 13 July 2025 at 00:52:56 UTC, Kapendev wrote: >On Sunday, 13 July 2025 at 00:12:16 UTC, Monkyyy wrote: >Disable all anti work keywords on a fundamental level. Hey! Private is useful :( False; it can only make less code work. I understand that some have a religious belief that some working code is unholy. However I would prefer my computer does what I tell it to do when I tell it to do it and not do major reworks if I happen to use code with such unnecessary wounds. I do think that having private struct/class fields is sometimes annoying, but nothing wrong with private functions.
|
July 17 Re: Justwerk compiler flag | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dukc | On Thursday, 17 July 2025 at 13:53:24 UTC, Dukc wrote: >On Sunday, 13 July 2025 at 01:07:28 UTC, monkyyy wrote: >False; it can only make less code work. I understand that some have a religious belief that some working code is unholy. Then again, probably you agree there is some code you wouldn't want to compile. If I write
do you think that should compile to something? If not, there you have it - there is code that shouldn't work. The question is, where are you drawing the line - when do compiler checks go too far? Failing to parse is different from not working because extra code decides its a bad idea; my line would be mostly ()'s matching and semicolons for compiled c-like languages; in a calculator every string should return a result. |