4 ms·
Okay, but why // SPDX-License-Identifier: UNLICENSED on 6 lines of trivial example code? Of all the things to make proprietary...
by yjftsjthsd-h 1y ago
Okay, but why
// SPDX-License-Identifier: UNLICENSED
on 6 lines of trivial example code? Of all the things to make proprietary...
- typpilol 1y agoI saw that too and had to double take lol
- layer8 1y agoMore importantly, it’s apparently non-conforming: https://opensource.stackexchange.com/a/12412 https://opensource.stackexchange.com/a/12412 Other than that, simply not specifying any license would be equivalent.
- dejj 1y agoWould the license help to prevent an AI training on the example code?
- LtWorf 1y agoNo, AI companies are apparently exempted from copyright laws. edit: bring on the downvotes… doesn't change the fact that fb illegally downloaded a lot of material to train, and so did every other AI company.
- bdhcuidbebe 1y agoYou are right.
- qualeed 1y agoIf they eventually start paying attention to licenses, maybe?
- tczMUFlmoNk 1y agoIt seems that the Solidity compiler complains if you do not specify one: https://stackoverflow.com/questions/68332228/spdx-license-identifier-not-provided-warning-what-does-it-mean https://stackoverflow.com/questions/68332228/spdx-license-id...
- layer8 1y agoIt’s just example code in a blog post though…
- yjftsjthsd-h 1y agoWarning, not error, and if you must license the 6-line trivial example, just use CC0-1.0
- sali0 1y agoNot having this statement results in a compile time error in solidity.
- yjftsjthsd-h 1y agoEven if that's true: Okay, so why "UNLICENSED" instead of "CC0-1.0"? Especially for a trivial example? Or I guess MIT or something if you really care about something at the same level as hello world?