You can have the semantics of C's strlen() with an object notation or use a function notation for a method call. It's purely a syntactical convention that the dot suggests an object, all it indicates is that this is a prefix argument.
For example, in Raku you can write arr.elems or elems arr or elems(arr)
The semantics are the same regardless of the syntax.