bytbox wrote:5 tabs. If you're nesting any deeper than that, you're screwed anyway.
apparently you haven't seen much lisp code...
Moderators: phlip, Moderators General, Prelates
bytbox wrote:5 tabs. If you're nesting any deeper than that, you're screwed anyway.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } hotaru wrote:bytbox wrote:5 tabs. If you're nesting any deeper than that, you're screwed anyway.
apparently you haven't seen much lisp code...
namespace
{
class
{
function ()
{
//Code
}
}
}
flying sheep wrote:do you really do that in c#? i remember that in java, we did 1 class per file, so the minimum would be 1 level of indentation (stuff inside functions, eeh, sorry, methods)
public class Stuff {
public static void main(String[] args) {
System.out.println("This command is far to long for a simple print statement");
}
}flying sheep wrote:i meant it like hintss: we didn’t indent the forst level, because it’s quite useless: you don’t gain any more readability, but you have indented 99.999% of your code. i think it’s much better to do
- Code: Select all
public class Stuff {
public static void main(String[] args) {
System.out.println("This command is far to long for a simple print statement");
}
}
namespace SomeNameSpace
{
public class MyClass
{
static void Main()
{
Nested.NestedNameSpaceClass.SayHello();
}
}
// a nested namespace
namespace Nested
{
public class NestedNameSpaceClass
{
public static void SayHello()
{
Console.WriteLine("Hello");
}
}
}
}
// Output: Hello
frezik wrote:Anti-photons move at the speed of dark
DemonDeluxe wrote:Paying to have laws written that allow you to do what you want, is a lot cheaper than paying off the judge every time you want to get away with something shady.
cjmcjmcjmcjm wrote:Tabs
yurell wrote:We need fewer homoeopaths, that way they'll be more potent!
happosai wrote:Everything was happy, until people started using code editors with variable width font. frackers.
yurell wrote:We need fewer homoeopaths, that way they'll be more potent!
happosai wrote:"tabs for indentation" and "spaces for aligning". Works perfectly, making both the "tab" and "spaces" people happy. Everything was happy, until people started using code editors with variable width font. frackers.
this = {"looks": "shitty",
"with": "variable"}
character("width.",
"and without elastic tabstops")this = {
"looks": "good",
"with": "variable"
}
character(
"width,",
"too"
)Users browsing this forum: No registered users and 3 guests