>>265 ハードコーディングしないでちゃんと名前でリソース管理したほうがいいよ new regex(resouceManager.getString("pattern for special files")) こうしておかないと正規表現の数が増えるたびにコードの書き換え、リビルド、テスト、公開、とめんどくさい作業をしなければならないから最悪
class Pair<T, U> { private T first; private U second; public Pair(T first, U second) {this.first = first;this.second = second;} public T first() {return first;} public U second() {return second;} } class StringPair extends Pair<String, String> { public StringPair(String a, String b) {super(a, b);} public String whole() {return whole("");} public String whole(String sep) {return new StringBuilder().append(first()).append(sep).append(second()).toString();} }
https://en.wikipedia.org/wiki/Stream_(computing) > In computer science, a stream is a sequence of data elements made available > over time. A stream can be thought of as items on a conveyor belt being > processed one at a time rather than in large batches.
Exampleにはこうも書いてある On Unix and related systems based on the C language, a stream is a source or sink of data, usually individual bytes or characters. Streams are an abstraction used when reading or writing files, or communicating over network sockets
いや、それをメソッド名の名前につけるんでたぶんこのスレでいいと思います。 Structですか。接頭辞つけるならこれですかね。ジェネリック制約の値型の制約でもstructですし。 現状、 public T GetValue<T>(...) where T : class public T GetValueOrDefault<T>(...) where T : struct な感じで、全部GetValueほにゃららという感じで名前では値型の値を返すのか、参照型の値を返すのかは はっきり区別させてなくて、ジェネリック制約で区別してるんですが、 名前でも区別させるとしたら、Valueの前にどんな修飾子つければいいのかなぁと思った次第です。
> A follower is another Twitter user who has followed you to receive your Tweets in their Home stream. followerとは、フォローした人(who has followed you)だって書いてるじゃん。
>>832 > = -> operator VB 系の言語ならトークンにした段階だと Let A = B と If A = B で意味が違うからそこは普通に TokenEqual とかの方がいいと思う Operator と判断するのは構文解析のあと また Dim, As, Set 等がキーワードなら >>833 の言うように TokenDim とか KW_Dim とかかな
cancel |ˈkansəl| verb (cancels, canceling, canceled; British cancels, cancelling, cancelled) [with object] 1 decide or announce that (an arranged or planned event) will not take place: he was forced to cancel his visit.
カタカナ語の語感からも分かるとは思うが、"arranged or planned event"に適用するもんやで すでに起こって(完了)いることには使わない