|
|
|
|
|
by jeswin
340 days ago
|
|
I just want to focus on writing functions. Here's a trivial example. I would like: // math/adder.cs
public static add(int x, int y) : int {
return x + y;
}
Instead of: // math/adder.cs
namespace math {
class adder {
public static add(int x, int y) : int {
return x + y;
}
}
}
Both are callable as: math.adder.add(10, 20);
|
|