- No place expressions/lvalues. This means the
=
operator takes two arguments, of type*T
andT
, and sets the left side to the right side. There are several other implications of this, but I'm not including them here. - No booleans. The type system is powerful enough to allow easily swapping them out for more comprehensible alternatives. For example, consider
fn evaluate(expr: Expr, deep: bool)
. When calling, it looks likeevaluate(expr, true)
, which doesn't really communicate whattrue
means. Instead, withfn evaluate(expr: Expr, depth: .shallow or .deep)
, the call looks likeevaluate(expr, .deep)
, which communicates the meaning of it much better: deep evaluation. This doesn't implement any math operators, but if what you need is a 2-value integer, you can just create an an integer type with two elements (syntax undecided as of now) and use normal mathematical operations on them. If you think booleans are really needed, you can simplyconst Bool = .true or .false
. - Declarations (
x: int
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/neofetch b/neofetch | |
index 32601b5c..f8bbb07a 100755 | |
--- a/neofetch | |
+++ b/neofetch | |
@@ -1522,6 +1522,9 @@ get_distro() { | |
distro=${distro//Enterprise Server} | |
+ distro="Red Star OS via $distro" | |
+ distro=${distro/Ubuntu/Ubuntu(*)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
publishing { | |
publications { | |
mavenJava(MavenPublication) { | |
from components.java | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is the first line: line number one. */ | |
/* This is the beginning of this Java source file (not to be confused with a Java class file). */ | |
///////////////////////////////////////////////////////////////////// | |
// IMPORTANT NOTE: // | |
// // | |
// Apparently people are skeptical that this was written by hand. // | |
// (See https://goldenstack.net/skeptical.png) // | |
// I promise that this was one hundred percent handwritten. // | |
// // |