[Development] Coding style proposal

Marc Mutz marc.mutz at kdab.com
Mon Jan 6 11:38:31 CET 2014


On Thursday 02 January 2014 21:04:27 Jiergir Ogoerg wrote:
> buffer() // getter
> buffer_set(..) // setter
> BufferSupportsFind() // bool
> 
> selection() // getter
> SelectionMove(..) // move selection
> selection_set(..) // setter
> SelectionUnset(...) // unset something

You might find the std policy of having the same name for getter and setter 
(differing in constness and argument count) interesting, then:

off_t pos = buffer.pos();
buffer.pos(pos + 1);

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions



More information about the Development mailing list