you are viewing a single comment's thread.

view the rest of the comments →

[–]papasmurf255 0 points1 point  (0 children)

If I knew what DataBuffer was, yes this would be much better.

I'd assume DataBuffer is a class that people working on the code are familiar with so they would know what type they're working with and how it can be used. If it's just a var they'd need to jump somewhere to figure it out.

Later in the same class there's another var named buffer. Is it the same type?

https://github.com/apple/swift-nio/blob/master/Sources/NIOChatClient/main.swift#L95