RSSAmplifier

soc.me · Jun 20, 2018

Library Design: Naming Conventions – Part 2: Conversion

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Function Name Code Example Explanation to array.toList int32Value.toFloat64 dictionary.to[Queue] implies a (potentially lossy) conversion of a value result type might use Option or Result types to encode failures as int64Value.asFloat64 int64Value.as[Float64] stringBuffer.asByteBuffer map.asSetOfEntries setOfEntries.asMap implies a verbatim reinterpretation/wrapping/viewing of a value replacement…

Read on /languages/naming-conventions-conversion.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.