streem icon indicating copy to clipboard operation
streem copied to clipboard

Only parse files that end with ".strm" extension

Open felixangell opened this issue 8 years ago • 6 comments

felixangell avatar Nov 21 '16 21:11 felixangell

Could you tell me your intention? Many programming languages (including Ruby, Python, and others) do not care about file name extensions. They are only convention.

matz avatar Nov 22 '16 14:11 matz

I figured it adds a level of consistency and makes parsing flags in the long run simpler. It also gives some nice feedback to the user rather than just hanging and waiting for input.

felixangell avatar Nov 22 '16 14:11 felixangell

To add to that, enforcing restrictions in some cases is better in the long term. Consider: ".h" vs ".hpp" in C++, which causes things like, for instance, the GH syntax highlighter having to disambiguate the two as C or C++ by doing weird parses over the code or looking for certain symbols. People don't always follow conventions :-)

There's also: cpp, cc, C, cxx, c++ and hh H, hxx, hpp, h++, etc. Good to be consistent to avoid that.

felixangell avatar Nov 22 '16 14:11 felixangell

I can not find a value for add this. :-( And I don't understand why you skip files which don't have .strm extension.

mattn avatar Nov 24 '16 01:11 mattn

Haha, that's fine. Not many languages do this, the only language that comes to mind is the Go programming language.

felixangell avatar Nov 24 '16 08:11 felixangell

I can understand if the arguments is pointed to the directory.

mattn avatar Nov 24 '16 08:11 mattn